package com.gzz;

public enum ExceptionEnum {
    BAD_REQUEST(400, "请求数据格式不正确"), UNAUTHORIZED(401, "登录凭证过期！"),
    FORBIDDEN(300,"没有访问权限"), NOT_FOUND(404, "请示的资源找不到"),
    INTERNAL_SERVER_ERROR(500, "服务器内部错误"),
    SERVICE_UNAVAILABLE(503, "服务器正忙，请稍后再试"),
    UNKNOWN(1000, "未知异常"), IS_NOT_NULL(1001, "%s不能为空");
    private  int code;
    private String message;
    ExceptionEnum(int code, String message){
        this.code = code;
        this.message = message;
    }
}
